package com.shao.onlinepdf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author admin
 * @since 2021-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TUser extends Model<TUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;

    /** 账号 */
    private String account;

    /** 密码 */
    private String password;


    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

}
